if(!requestScreenCapture()){
    toast("请求截图失败");
    exit();
}
var tasksModule = require('./tasks');
var confModule = require('./config');
var commonModule = require('./common');
var commandModule = require('./command');
// tasksModule.job();
launchApp("万国觉醒");
sleep(30000)
while (!commonModule.isWord()) {
    commandModule.press(60, 650, 35);
    sleep(5000)
}
tasksModule.title(0);
tasksModule.title(1);
tasksModule.title(2);
if(confModule.getDkpServerId()){
   tasksModule.dkpDaemon();
}